package org.jeecg.modules.demo.yhs.Controller;

import org.jeecg.modules.demo.yhs.POJO.Consumption;
import org.jeecg.modules.demo.yhs.POJO.Result;
import org.jeecg.modules.demo.yhs.Service.BigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Y")
public class BIgController {

    @Autowired
    BigService bigService;

    @GetMapping(value = "/Consumption",produces = "application/json; charset=utf-8")
    private Result ss(){
        Consumption consumption=bigService.find();
        System.out.println(consumption);
          return new Result(200,"成功",consumption);
    }



}
